package router

import (
	"gitee.com/xgotool/backend-framework-template/app/web/code"
	"gitee.com/xgotool/backend-framework-template/app/web/system"
	"gitee.com/xgotool/backend-framework-template/app/web/system/configure"
	"gitee.com/xgotool/backend-framework-template/app/web/user"
	"gitee.com/xgotool/backend-framework-template/app/web/user/address"
	"gitee.com/xiaoyutab/xgotool/individual/xginplus"
)

// 无需登录即可访问的接口
func nologinRouter() map[string]func(*xginplus.Context) *xginplus.Response {
	return map[string]func(*xginplus.Context) *xginplus.Response{
		"system/configure/city": configure.City,  // 获取城市列表接口
		"system/configure/file": configure.File,  // 获取已上传文件地址
		"user/address/tag_list": address.TagList, // 获取地址标签列表接口
		"user/address/info":     address.Info,    // 获取地址详情接口
		"code/captcha":          code.Captcha,    // 获取验证码信息
		"system/progress":       system.Progress, // 后台进度条返回
		"post:user/login":       user.Login,      // 登录
	}
}
